module.exports = function (sequelize) {
    //性别模型
    var model = sequelize.define("gender", {
        "code": {type: sequelize.DataTypes.STRING(20), primaryKey: true},
        "name": {
            type: sequelize.DataTypes.STRING(50),
            allowNull: false
        }
    }, {
        "tableName": "dict_gender"
    });
    model.initData = new Array();
    model.initData.push({code: "Male", name: "男"});
    model.initData.push({code: "Female", name: "女"});
};